package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.entity.Comment;

import java.util.List;


public interface CommentService {
    PageInfo<Comment> findByPage(int pageNum, int pageSize, String creatorName, String title);

    Comment findById(Integer id);

    List<Comment> findByMovieId(Integer id);

    void save(Comment comment);

    void update(Comment comment);

    void deleteById(Integer id);

    void deleteBatch(Integer[] ids);
}